﻿@{
    Layout = "_Layout.cshtml";
    ViewBag.Title = "Download";
    RoccaStore.FileInfo file = (RoccaStore.FileInfo)ViewBag.File;
    RoccaStore.Slug slug = (RoccaStore.Slug)ViewBag.Slug;
    string formattedSize = ViewBag.FormattedSize;
}
<table border="0" width="550px" class="email" style="background: #fff; padding: 10px;
    width: 550px; margin: 0 auto; text-align: center;"
    align="center">
    <tr>
        <td style="padding: 10px; font-family: Helvetica, sans-serif; color: #888">
            <h1 style="font-size: 17px; margin: 0">You have been sent a file!</h1>
        </td>
    </tr>
    <tr>
        <td style="padding: 10px; font-family: Helvetica, sans-serif; color: #888">Filename:
            <b>@slug.Title</b> (@formattedSize)
        </td>
    </tr>
    <tr>
        <td style="padding: 10px; font-family: Helvetica, sans-serif; color: #888">Please use
            this link to download the file: <a href="http://@Request.Url.Authority/@slug.Name/@(ViewBag.HashedData != null ? ViewBag.HashedData : string.Empty)" style="color: #ec0b8d;
                text-decoration: underline">http://@Request.Url.Authority/@slug.Name</a>
        </td>
    </tr>
    <tr>
        <td class="info padding-top" style="padding: 4px 10px 4px 10px; font-family: Helvetica, sans-serif;
            color: #888; font-size: 12px">
            <br />
            <br />
            This notification was sent on @DateTime.Now.ToString("dd MMMM") at @DateTime.Now.ToString("HH:mm tt"),
            from the IP address: @Request.ServerVariables["REMOTE_ADDR"]
        </td>
    </tr>
    <tr>
        <td class="info" style="padding: 4px 10px 4px 10px; font-family: Helvetica, sans-serif;
            color: #888; font-size: 12px">Please do not reply directly to this message. For
            support please visit <a href="http://store.rocca.cc" style="color: #888; text-decoration: underline">
                Rocca Store</a>.</td>
    </tr>
</table>
